﻿using System;
using System.Drawing;

namespace Maze
{
    public class Level
    {
        public static Board Create()
        {
           
            SQ[,] squares = {{ SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W }, 
                             { SQ.W, SQ.O, SQ.O, SQ.O, SQ.W, SQ.O, SQ.O, SQ.O, SQ.C, SQ.W },
                             { SQ.W, SQ.O, SQ.W, SQ.C, SQ.W, SQ.O, SQ.W, SQ.W, SQ.O, SQ.W },
                             { SQ.W, SQ.O, SQ.O, SQ.O, SQ.O, SQ.O, SQ.O, SQ.O, SQ.O, SQ.W },
                             { SQ.W, SQ.O, SQ.W, SQ.W, SQ.O, SQ.W, SQ.O, SQ.W, SQ.O, SQ.W },
                             { SQ.W, SQ.C, SQ.O, SQ.O, SQ.C, SQ.O, SQ.C, SQ.O, SQ.O, SQ.W },
                             { SQ.W, SQ.O, SQ.O, SQ.O, SQ.O, SQ.W, SQ.W, SQ.O, SQ.W, SQ.W },
                             { SQ.W, SQ.O, SQ.W, SQ.W, SQ.O, SQ.W, SQ.O, SQ.O, SQ.O, SQ.W },
                             { SQ.W, SQ.C, SQ.O, SQ.O, SQ.C, SQ.O, SQ.O, SQ.W, SQ.C, SQ.W },
                             { SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W, SQ.W }};

            Board board = new Board(squares);
            board.Player = new Player(new Point(1, 2), new PathFinder(board));
            Enemy[] enemies = { new DumbEnemy(new Point(1,8), new PathFinder(board), new Point(8,1)),
                                new DumbEnemy(new Point(8,1), new PathFinder(board), new Point(1,8))};

            board.Enemies = enemies;
            return board;
        }
    }
}
